SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO



CREATE PROCEDURE dbo.DnnProduct_GetPermissionByCodeAndKey
	@PermissionCode varchar(50),
	@PermissionKey varchar(50)
AS
	SELECT *
		FROM dbo.DnnProduct_Permission
		WHERE
			(PermissionCode = @PermissionCode or @PermissionCode IS NULL)
			AND
			(PermissionKey = @PermissionKey or @PermissionKey IS NULL)

GO
